import request from '@/router/axios';
//审核通过 - 不通过 2 3
export const dealCheck = (data) => request({
  url: '/api/blade-email/EmailApproval/approval',
  method: 'post',
  data
})
//提交审批
export const submitApproval = (data) => request({
  url: '/api/blade-email/EmailApproval',
  method: 'post',
  data
})
//获取审批邮件
export const getApprovalList = (data) => request({
  url: '/api/blade-email/EmailApproval/page',
  method: 'get',
  params: data
})
//撤销审批
export const cancelApproval = (id) => request({
  url: `/api/blade-email/EmailApproval/recall/${id}`,
  method: 'post',
})
//重新提交
export const rebackCheck = (id) => request({
  url: `/api/blade-email/EmailApproval/resubmit/${id}`,
  method: 'post'
})
//审批日志
export const getApprovalLog = (id) => request({
  url: `/api/blade-email/EmailApprovalLog/list/${id}`,
  method: 'get'
})
//获取单个审批详情
export const getApprovalDetail = (id) => request({
  url: `/api/blade-email/EmailApproval/${id}`,
  method: 'get'
})
